package com.jch.wns.web;

import com.jch.wns.websocket.NettyServer;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class NettyController {

    @Resource
    private NettyServer nettyServer;

    @RequestMapping("/test")
    public String index(Model model){
        model.addAttribute("name","xiaohao");
        return "index";
    }
}
